package com.zzz.web.service;

import com.zzz.web.Data.XYaxis;
import com.zzz.web.dao.XYDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "XYService")
public class XYService {

    @Autowired
    private XYDao xyDao;

    public void add(XYaxis xYaxis) {
        xyDao.add(xYaxis);
    }

    public List<XYaxis> selectAll(){
        return xyDao.selectAll();
    }

    public void addToXY2(XYaxis xYaxis){
        xyDao.addTo2(xYaxis);
    }

    public List<XYaxis> selectAllFrom2(){
        return xyDao.selectAllFrom2();
    }
}
